package com.qf.service.impl;

import com.qf.dao.SetMealDelete;
import com.qf.service.DeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional(rollbackFor=Exception.class)
@Service
public class DeleteServicelmpl implements DeleteService {

    @Autowired
    private SetMealDelete setMealDelete;


    @Override
    public void Delete(Integer id) {

        setMealDelete.findByIdDelete(id);
    }

    @Override
    public void Delete1(Integer id) {
        setMealDelete.findByIdDelete1(id);
    }
}
